<template>
  <svg aria-hidden="true" class="cp-icon">
    <use :href="`#icon-${name}`" />
  </svg>
</template>
<script setup lang="ts">
defineProps<{
  name: string
}>()
</script>
<style scoped lang="scss">
// em是网页的字体大小
.cp-icon {
  width: 1em;
  height: 1em;
}
</style>